package fnord.illuminati.action.actions;

import fnord.illuminati.action.AttackModifierAction;
import fnord.illuminati.card.groupcards.MoralMinority;
import fnord.illuminati.card.groupcards.TVPreachers;
import fnord.illuminati.order.AttackOrder;
import fnord.illuminati.order.AttackType;

public class TVPreachersAction implements AttackModifierAction {
	private static final long serialVersionUID = 8315925668132817821L;

	@Override
	public int doAttack(AttackOrder order) {
		if (order.getAttackType() == AttackType.CONTROL && order.getFrom() instanceof TVPreachers && order.getTo() instanceof MoralMinority)
			return 3;
		else
			return 0;
	}

	@Override
	public int doDefend(AttackOrder order) {
		return 0;
	}
}
